c93348ddf23b6cb048db81bf9bbcfe1cdacba9a4,peppol-smp-server-library/src/main/java/com/helger/peppol/smpserver/domain/serviceinfo/SMPServiceInformationMicroTypeConverter.java,SMPServiceInformationMicroTypeConverter,convertToNative,#IMicroElement#,69
Before Change
public ISMPServiceInformation convertToNative (@Nonnull final IMicroElement aElement)
{
final IIdentifierFactory aIdentifierFactory = SMPMetaManager.getIdentifierFactory ();
final ISMPServiceGroupManager aSGMgr = SMPMetaManager.getServiceGroupMgr ();
final String sServiceGroupID = aElement.getAttributeValue (ATTR_SERVICE_GROUP_ID);
final ISMPServiceGroup aServiceGroup = aSGMgr.getSMPServiceGroupOfID (aIdentifierFactory.parseParticipantIdentifier (sServiceGroupID));
if (aServiceGroup == null)
throw new IllegalStateException ("Failed to resolve service group with ID '" + sServiceGroupID + "'");
After Change
@Nonnull
public ISMPServiceInformation convertToNative (@Nonnull final IMicroElement aElement)
{
return convertToNative (aElement, SMPMetaManager.getServiceGroupMgr ());
}
}